/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.core;

import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Office.OfficeDataSourceObject*/
public class OfficeDataSourceObject extends JavaScriptObject {

	protected OfficeDataSourceObject() { }
	public native final String getConnectString()/*-{
		return this.ConnectString;
	}-*/;

	public native final void setConnectString(String value)/*-{
		this.ConnectString = value;
	}-*/;

	public native final String getTable()/*-{
		return this.Table;
	}-*/;

	public native final void setTable(String value)/*-{
		this.Table = value;
	}-*/;

	public native final String getDataSource()/*-{
		return this.DataSource;
	}-*/;

	public native final void setDataSource(String value)/*-{
		this.DataSource = value;
	}-*/;

	public native final Object getColumns()/*-{
		return this.Columns;
	}-*/;

	public native final int getRowCount()/*-{
		return this.RowCount;
	}-*/;

	public native final Object getFilters()/*-{
		return this.Filters;
	}-*/;

	public native final int move(int msoMoveRow, int rowNbr)/*-{
		return this.Move( msoMoveRow, rowNbr);
	}-*/;

	public native final void open(String bstrSrc, String bstrConnect, String bstrTable, int fOpenExclusive, int fNeverPrompt)/*-{
		this.Open( bstrSrc, bstrConnect, bstrTable, fOpenExclusive, fNeverPrompt);
	}-*/;

	public native final void setSortOrder(String sortField1, boolean sortAscending1, String sortField2, boolean sortAscending2, String sortField3, boolean sortAscending3)/*-{
		this.SetSortOrder( sortField1, sortAscending1, sortField2, sortAscending2, sortField3, sortAscending3);
	}-*/;

	public native final void applyFilter()/*-{
		this.ApplyFilter( );
	}-*/;

}
